package com.lvtongka.app.common

import com.lvtongka.app.base.BaseApplication

class CommonUtils {
    companion object {

        /**
         * 获取状态栏高度
         *
         * @return
         */
        fun getStatusBarHeight(): Int {
            val resources = BaseApplication.getContext().resources
            val resourceId = resources.getIdentifier("status_bar_height", "dimen", "android")
            return resources.getDimensionPixelSize(resourceId)
        }
    }
}